﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Skybot.Docs;
public partial class jfyc源代码分析_缓存数据替换 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        System.Net.WebClient wc = new System.Net.WebClient();
        wc.Encoding = System.Text.Encoding.UTF8;
        // string str= wc.DownloadString("http://www.baidu.com/s?tn=baiduhome_pg&ie=utf-8&bs=%E6%88%90%E8%AF%AD+%E8%BF%91%E4%B9%89&f=8&rsv_bp=1&wd=%E5%AE%9A%E4%BD%8D%E4%BF%A1%E6%81%AF&rsv_sug3=7&rsv_sug4=655&rsv_sug1=6&inputT=11185");
        string str = wc.DownloadString("http://www.qlili.com/docs/HTML/DouFuYanQing/YiDaoGuanTu/1477060.html");
        string stra = str.ReplaceByNearSynonym();
        //反义词:,近意词:通知|反应,原词:反馈
        //反义词:,近意词:反馈,原词:通知
        var orig = WordUnitys.Instance.Caches.ToLookup(p => p.OriginWord);
        //输出数据  
        foreach (var key in orig)
        {
            if (key.Key.Contains("*"))
            {
                Response.Write(key.Key+"<br/>");
            }
        }


        Response.Write(WordUnitys.Instance.Caches.Count);
        wc.Dispose();
    }


}